import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import banner from '@/components/banner'

import center from '@/components/personal_center'
import home from '@/components/home'


Vue.use(Router)

export default new Router({
	mode : 'history',
  base: '/',  //添加的地方
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,		
    },
		{
		  path: '/center',
		  name: 'center',
		  component: center,		
		},
		{
			path: '/home',
			name: 'home',
			component: home
		},
		{
			path: '/banner',
			name: 'banner',
			component: banner
		}
  ]
})
